EncounterMethod

@Serializable
data class EncounterMethod(val id: Int, val name: String, val order: Int, val names: List<Name>) : NamedModel(source)

Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. See: https://pokeapi.co/docs/v2#encounter-methods

Parameters

id

The identifier for this resource.

name

The name for this resource.

order

A good value for sorting.

names

The name of this resource listed in different languages.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, order: Int, names: List<Name>)

Properties

Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
val order: Int